package com.xiyu.service.enums.office.space;

import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 办公用房状态
*/
@Getter
@AllArgsConstructor
public enum OfficeSpaceStatusEnum implements IntArrayValuable {

    /**
    * 空闲
    */
    EMPTY(1, "空闲"),
    /**
    * 使用中
    */
    USED(2, "使用中");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(OfficeSpaceStatusEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(OfficeSpaceStatusEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}
